<?php echo $this->load->view('_elements/registratednavigation'); ?>

<div id="content">

    <div id="centerbar">
        <div class="titleI"><?php echo $Title; ?></div>
        <div id="prForm" class="blockstyle form">

        	<?php echo form_open($this->curl.'/post_request', 'id="post_request" name="post_request" autocomplete="off"')?>
			<?php echo $this->validation->error_string?>
        
        	<div id="prID_Status" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['member_id']; ?></div>
				<?php echo form_input('member_id','M'.$user_member_id, 'id="prMemberId" class="formInput" style="width:100px;" disabled="disabled"')?>
				<div class="blue formText"><?php echo $this->user_model->fields['status']; ?></div>
				<?php echo form_input('status', $user_status, 'id="prStatus" class="formInput" style="width:100px;" disabled="disabled"')?>
			</div>
			<div id="prReferral_Date" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['referral_no']; ?></div>
				<?php echo form_input('referral_no', $user_referral_no, 'id="prReferralNo" class="formInput" style="width:100px;" disabled="disabled"')?>
				<div class="blue formText"><?php echo $this->user_model->fields['date_posted']; ?></div>
				<?php echo form_input('date_posted', $user_date_posted, 'id="prDatePosted" class="formInput" style="width:100px;" disabled="disabled"')?>
			</div>
			<div id="prReferralAbstract" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['referral_abstract']; ?></div>
				<?php echo form_input('referral_abstract', $this->validation->referral_abstract, 'class="formInput" style="width:550px;"')?>
			</div>
			<div id="prReferralDetails" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['referral_details']; ?></div>
				<?php echo form_textarea('referral_details', $this->validation->referral_details, 'class="formInput" style="width:550px;"')?>
			</div>
			<div id="prEndDate" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['end_date']; ?></div>
                <?php echo form_input('end_date', $this->validation->end_date, 'id="end_date" class="formInput" size="10" style="width: 130px;"')?>
                <input id="f_btn2" type="button" style="margin:0;padding:0;width:26px;height:24px" value="..."  />
			</div>
			<div id="prAskPrice" class="formElement">
				<div class="blue formText"><?php echo $this->user_model->fields['ask_price']; ?></div>
				<?php echo form_input('ask_price', $this->validation->ask_price, 'class="formInput" style="width:100px;"')?>
			</div>
            <input type="submit" value="<?php echo T_('SUBMIT'); ?>" name="postRequest" id="prSubmit" class="red buttonStyle"/>
			
			<?php echo form_close()?>
			
        </div>
    </div>
    
 <?php echo $this->load->view('_elements/Followrefs'); ?>
</div>

<script type="text/javascript">
    var cal = Calendar.setup({
        onSelect: function(cal) { cal.hide() }
    });

    cal.manageFields("f_btn2", "end_date", "%Y-%m-%d");
</script>